//
//  BaseViewController.m
//  project-A (pianke)
//
//  Created by dllo on 16/1/24.
//  Copyright © 2016年 scott. All rights reserved.
//

#import "BaseViewController.h"
#import "AccountManager.h"
#import "NotificationMacro.h"
@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    if ([AccountManager sharedInstance].isNight) {
        [self setNightModel];
    }else{
        [self setLightDayModel];
        
    }
    
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(setLightDayModel) name:kLightDayModelNotification object:nil];
    
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(setNightModel) name:kNightDayModelNotification object:nil];

}
-(void)setLightDayModel{
    
    NSLog(@"设置白天模式成功");
}

-(void)setNightModel{
    
    NSLog(@"设置夜间模式成功");
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
